import { useNavigate } from "react-router-dom"
import { Button } from "antd-mobile";

const Login = () => {
  const usenavigate = useNavigate();

  function getHome() {
    usenavigate("/", { relative: true })
  }

  return (
    <div className="login">
      <div className="cd">
        <Button color="primary" onClick={getHome}>
          返回首页
        </Button>
      </div>
    </div>
  );
};

export default Login;
